﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CS
{
	public partial class Thread23930 : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
		{
			Panel1.Visible = (!string.IsNullOrEmpty(RadioButtonList1.SelectedValue) && bool.Parse(RadioButtonList1.SelectedValue));
		}

		protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!string.IsNullOrEmpty(DropDownList1.SelectedValue))
			{
				DropDownList2.Items.Clear();
				for (int i = 0; i < int.Parse(DropDownList1.SelectedValue); i++)
					DropDownList2.Items.Add(new ListItem("Child Item " + i.ToString(), i.ToString()));
			}
		}

		protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
		{
			Label1.Text = CheckBoxList1.SelectedValue;
		}
	}
}
